package edu.ncst.baseweb.dao.web;

import edu.ncst.baseweb.common.RequestPage;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "lab_project")
public class LabProject extends RequestPage {
    //科研项目ID
    @TableId(value = "id")
    private Integer id;
    //科研项目名称
    @TableField(value = "name")
    private String name;
    //科研项目内容
    @TableField(value = "text")
    private String text;
//    开始时间
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField(value = "stime")
    private Date stime;
//    结束时间
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField(value = "etime")
    private Date etime;
//    项目状态
    @TableField(value = "enable")
    private String enable;

    //科研项目ID
    public static final String COL_ID = "id";
    //科研项目名称
    public static final String COL_NAME = "name";
    //科研项目内容
    public static final String COL_TEXT = "text";
    //开始时间
//    public static final String COL_STIME="stime";
    //结束时间ee
//    public static final String COL_ETIME="etime";
    //项目状态
    public static final String COL_ENABLE = "enable";

}
